﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Delivery_Detail.aspx.cs" Inherits="Sbook.AdminIstrator.delivery" %>

<%@ Register src="ControlAdmin/MenuLeft.ascx" tagname="MenuLeft" tagprefix="uc1" %>

<%@ Register src="ControlAdmin/ucLogout.ascx" tagname="ucLogout" tagprefix="uc2" %>
<%@ Register Src="ControlAdmin/MenuTop.ascx" TagName="MenuTop" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Delivery Note</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/ddaccordion.js"></script>
<script type="text/javascript">
    ddaccordion.init({
        headerclass: "submenuheader", //Shared CSS class name of headers group
        contentclass: "submenu", //Shared CSS class name of contents group
        revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
        mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
        collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
        defaultexpanded: [], //index of content(s) open by default [index1, index2, etc] [] denotes no content
        onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
        animatedefault: false, //Should contents open by default be animated into view?
        persiststate: true, //persist state of opened contents within browser session?
        toggleclass: ["", ""], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
        togglehtml: ["suffix", "<img src='images/plus.gif' class='statusicon' />", "<img src='images/minus.gif' class='statusicon' />"], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
        animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
        oninit: function (headers, expandedindices) { //custom code to run when headers have initalized
            //do nothing
        },
        onopenclose: function (header, index, state, isuseractivated) { //custom code to run whenever a header is opened or closed
            //do nothing
        }
    })
</script>
<script src="js/jquery.jclock-1.2.0.js.txt" type="text/javascript"></script>
<script type="text/javascript" src="js/jconfirmaction.jquery.js"></script>
<script type="text/javascript">

    $(document).ready(function () {
        $('.ask').jConfirmAction();
    });
	
</script>
<script type="text/javascript">
    $(function ($) {
        $('.jclock').jclock();
    });
</script>

<script language="javascript" type="text/javascript" src="js/niceforms.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="css/niceforms-default.css" />

</head>
<body>
    <form id="form1" runat="server">
<div id="main_container">

	<div class="header">
    <div class="logo"><a href="adminsys.html"><img src="../images/logo_sach.gif" width="130" height="100" border="0" /></a></div>
    
    <div class="right_header">Welcome Admin | <uc2:ucLogout 
            ID="ucLogout1" runat="server" />
        </div>
    <div class="jclock"></div>
    </div>
    
    <div class="main_content">
    
    <uc1:MenuTop runat="server" ID="menuTop" />
          
    <div class="center_content">  
    
    
    <uc1:MenuLeft ID="MenuLeft1" runat="server" />
    
    
    <div class="right_content">            
        
    <h2>DELIVERY NOTE</h2>
    <table cellspacing="0" cellpadding="0" style="margin-left:15px;">
      <col width="67" />
      <col width="81" />
      <col width="236" />
      <col width="48" span="2" />
      <col width="98" />
      <col width="82" />
      <col width="46" />
      <col width="81" />
      <col width="73" />
      <tr>
        <td width="65">Customer</td>
        <td width="152"></td>
        <td width="149"></td>
        <td width="43"></td>
        <td width="75"></td>
       
        <td width="70"></td>
        <td width="70"></td>
        <td width="45"></td>
        <td width="44"></td>
      </tr>
      <tr>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
      <tr>
        <td>No</td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td>PO Code</td>
        <td><asp:Label runat="server" ID="lblPoCode"></asp:Label></td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
      <tr>
        <td>Name</td>
        <td>
            <asp:Label ID="lblCustomerName" runat="server" Text=""></asp:Label></td>
        <td></td>
        <td></td>
        <td></td>
        <td>Shipping Point</td>
        <td colspan="3"> 
            <asp:Label ID="lblShippingPoint" runat="server" Text=""></asp:Label></td>
        <td></td>
      </tr>
      <tr>
        <td>Address </td>
        <td colspan="2">
            <asp:Label ID="lblAddress" runat="server" Text=""></asp:Label></td>
        <td></td>
        <td></td>
        <td>Delivery Time</td>
        <td colspan="2"> 
            <asp:Label ID="lblDeliveryTime" runat="server" Text=""></asp:Label></td>
        <td></td>
        <td></td>
      </tr>
      
      <tr>
        <td>University</td>
        <td colspan="2">
            <asp:Label ID="lblUniversity" runat="server" Text=""></asp:Label></td>
        <td></td>
        <td></td>
     <td>Order type</td>
        <td>COD</td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
      <tr>
        <td>Phone No</td>
        <td colspan="2">
            <asp:Label ID="lblPhone" runat="server" Text=""></asp:Label></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
      <tr>
        <td>Email</td>
        <td colspan="2"><a href='mailto:<%=GetEmailByDeliveryId(HttpUtility.HtmlEncode(Request.QueryString["DeliveryId"])) %>'><asp:Label ID="lblEmail" runat="server" Text=""></asp:Label> </a>
            </td>
        <td colspan="3">&nbsp;</td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
    </table>
    <p>&nbsp;</p> 
                    
        <asp:Repeater ID="rpDeliveryDetail" runat="server">
        <HeaderTemplate>
        <table id="rounded-corner" summary="2007 Major IT Companies' Profit">
            <thead>
    	        <tr>
                    <th scope="col" class="rounded-company">Item No</th>
                    <th scope="col" class="rounded">Material</th>
                    <th scope="col" class="rounded">Description</th>
                    <th scope="col" class="rounded">QTY</th>
                    <th scope="col" class="rounded">Uom</th>
                    <th scope="col" class="rounded">Location</th>
                    <th scope="col" class="rounded">Price</th>
                    <th scope="col" class="rounded">Unit</th>
                    <th scope="col" class="rounded">Total</th>
                    <th scope="col" class="rounded-q4">Remark</th>

                </tr>
            </thead>
             <tfoot>
    	        <tr style="background-color:blue">
        	        <td colspan="3" class="rounded-foot-left">Total</td>
                    <td colspan="1">
                        <asp:Label ID="lblSumQty" runat="server" Text=""></asp:Label> </td>
                    <td colspan="4"></td>
                    <td colspan="1">
                        <asp:Label ID="lblSumPrice" runat="server" Text=""></asp:Label> </td>
                    <td colspan="2"></td>
        	       

                </tr>
            </tfoot>
        </HeaderTemplate>
         <ItemTemplate>
        
    	   <tbody> <tr>
                <td ><%# Container.ItemIndex + 1 %></td>
                <td ><%#Eval("PCode") %></td>
                <td ><%#Eval("PName") %> </td>
                <td >
                    <asp:Label ID="lblQty" runat="server" Text='<%#Eval("Qty")%>'></asp:Label> </td>
                <td style="text-align:left">
                    <asp:DropDownList ID="drdlUom" runat="server" Width="70px">
                    </asp:DropDownList> </td>
                <td ><%#Eval("Location") %></td>
                <td >
                    <asp:Label ID="lblPrice" runat="server" Text='<%#Eval("Price") %>'></asp:Label></td>
                <td >VND</td>
                <td>
                    <asp:Label ID="lblTotalPrice" runat="server" Text='<%#Eval("Total") %>'></asp:Label> </td>
                <td ><%#Eval("Remark") %></td>
            

              
            </tr>  </tbody>
            
         </ItemTemplate> 
         <FooterTemplate>
             
     </table>
         </FooterTemplate>
        </asp:Repeater>
 

	 <p>&nbsp;</p>
	 <table cellspacing="0" cellpadding="0">
	   <col width="67" />
	   <col width="81" />
	   <col width="236" />
	   <col width="48" span="2" />
	   <col width="98" />
	   <col width="82" />
	   <col width="46" />
	   <col width="81" />
	   <col width="73" />
	   <tr>
	     <td width="67"></td>
	     <td width="81">Packed by:</td>
	     <td width="236"></td>
	     <td width="48"></td>
	     <td width="48"></td>
	     <td width="98">Delivered by:</td>
	     <td width="82"></td>
	     <td width="46"></td>
	     <td width="81"></td>
	     <td width="73"></td>
	     </tr>
	   <tr>
	     <td></td>
	     <td></td>
	     <td></td>
	     <td></td>
	     <td></td>
	     <td></td>
	     <td></td>
	     <td></td>
	     <td></td>
	     <td></td>
	     </tr>
	   </table>
        <asp:LinkButton ID="lbtPrint" runat="server" CssClass="bt_red" 
            onclick="lbtPrint_Click"><span class="bt_red_lft"></span><strong>Print </strong><span class="bt_red_r"></span></asp:LinkButton>
	 <a href="#" class="bt_green"><span class="bt_green_lft"></span><strong>Add new item</strong><span class="bt_green_r"></span></a>
<p>&nbsp;</p>
	 <p>&nbsp;</p>
	 <p>&nbsp;</p>
	 <p>&nbsp;</p>
    </div>
    <!-- end of right content-->
            
                    
  </div>   <!--end of center content -->               
                    
                    
    
    
    <div class="clear"></div>
    </div> <!--end of main content-->
	
    
    <div class="footer">
    
    	<div class="left_footer">SBooks 2012<a href="http://indeziner.com"></a></div>
    </div>

</div>		
    </form>
</body>
</html>
